package org.wzry.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.wzry.wzry.Wzry;

@Controller
@RequestMapping("/wzry")
public class Wzrycontroller {
	
	Wzry w = new Wzry();
	/**
	 * 主页
	 * @return
	 */
	@RequestMapping("/index.do")
	public String index() {	
		return "index";
	}
	/**
	 * 武器
	 * @param request
	 * @return
	 */
	@RequestMapping("/wq.do")
	public String weapon(HttpServletRequest request) {	
			request.setAttribute("wzry", w.wzrywq());
		return "wzry-wq";
	}
	
	@RequestMapping("/yx.do")
	public String hero(HttpServletRequest request) {	
		request.setAttribute("hero", w.wzryyx()); 
		return "wzry-yx";
	}
	
	/**
	 * 边境武器
	 * @return
	 */
	@RequestMapping("/bjwq.do")
	public String wushu(HttpServletRequest request) {
		 request.setAttribute("wushu", w.wushu());
		return "wzry-bjwq";
	}
	
	/**
	 * 英雄技能
	 */
	@RequestMapping("/jn.do")
	public String skill(HttpServletRequest request) {
		request.setAttribute("skill", w.skill());
		return "wzry-jn";
	}
	
	/**
	 * 铭文
	 * @param request
	 * @return
	 */
	@RequestMapping("/mw.do")
	public String epigraph(HttpServletRequest request) {
		request.setAttribute("epigraph", w.epigraph());
		return "wzry-mw";
	}
	
	/**
	 * 新英雄
	 * @param request
	 * @return
	 */
	@RequestMapping("/newyx.do")
	public String newhero(HttpServletRequest request) {
		request.setAttribute("newhero", w.newHero());
		return "wzry-newyx";
	}
	/**
	 * 新皮肤
	 * @param request
	 * @return
	 */
	@RequestMapping("/newpf.do")
	public String derma( HttpServletRequest request) {
		request.setAttribute("newderma", w.newderma());
		return "wzry-newpf";
	}
	
	/**
	 * 调整英雄
	 * @param request
	 * @return
	 */
	@RequestMapping("/tone.do")
	public String tone(HttpServletRequest request) {
		request.setAttribute("tone", w.tone());
		return "wzry-tz";
	}
	
	/**
	 * 新模式
	 * @return
	 */
	@RequestMapping("/newmodel.do")
	public String newmodel(HttpServletRequest request) {
		request.setAttribute("model", w.model());	
		return "wzry-xms";
	}
	
	/**
	 * 新系统
	 * @return
	 */
	@RequestMapping("/newsystem.do")
	public String newsystem(HttpServletRequest request) {
		request.setAttribute("newsystem", w.newsystem());
		return "wzry-xxt";
	}
	
	/**
	 * 优化
	 * @param request
	 * @return
	 */
	@RequestMapping("/optimize.do")
	public String optimize(HttpServletRequest request) {
		request.setAttribute("optimize", w.optimize());
		return "wzry-yh";
	}
	
	/**
	 * 美术
	 * @return
	 */
	@RequestMapping("/ms.do")
	public String fine(HttpServletRequest request) {
		request.setAttribute("fine", w.fine());
		return "wzry-ms";
	}
	/**
	 * 模拟战-新武器
	 * @param request
	 * @return
	 */
	@RequestMapping("/xqw.do")
	public String fierce(HttpServletRequest request) {
		request.setAttribute("fierce", w.fierce());
		return "wzry-xqw";
	}
	
	/**
	 * 模拟战-天赋
	 * @param request
	 * @return
	 */
	@RequestMapping("/tf.do")
	public String flair(HttpServletRequest request) {
		request.setAttribute("flair", w.flair());
		return "wzry-tf";
	}
	
	/**
	 * 羁绊
	 * @param request
	 * @return
	 */
	@RequestMapping("/jb.do")
	public String detain(HttpServletRequest request) {
		request.setAttribute("detain", w.detain());
		return "wzry-jb";
	}
	
	/**
	 * 模拟战-英雄
	 * @return
	 */
	@RequestMapping("/qy.do")
	public String chesshero(HttpServletRequest request) {
		request.setAttribute("chesshero", w.chesshero());
		return "wzry-qy";
	}
}
